<template>
    <div>
        <el-bread></el-bread>
        <el-button @click="addList" type="primary" plain class="addBtn" size="mini">添加</el-button>

        <v-list @edit="edit"></v-list>

        <v-dialog :zhe="zhe" :isAdd="isAdd" @close="close" ref="dialogRef"></v-dialog>
       
    </div>
</template>
<script>
import vList from "./list.vue"
import vDialog from "./dialog.vue"

export default {
    data() {
        return {
            moren: "菜单地址",
            form: {
              
            },
            zhe: false,
            isAdd:true
        }
    },
    methods: {
        addList(){
            this.zhe = true
            this.isAdd=true
        },
        edit(e){
            this.zhe = true
            this.isAdd=false
            this.$refs.dialogRef.lookup(e)
        },
        close(){
         this.zhe = false
        }

    },
    mounted() {
    },
    watch: {},
    computed: {},
    filters: {},
    components: {
        vList,vDialog
    }
}
</script>
<style scoped>
.addBtn {
    margin: 20px 0 20px 0;

}
.table{
    min-width: 1070px;
}
</style>